#include "funciones.h"

unsigned int mcd(unsigned int m, unsigned int n){
	if (n == 0)
		return m;
	else
	{
		unsigned int r = m % n;
		return mcd(n, r);
	}
}

unsigned int mcm(unsigned int m, unsigned int n){
	unsigned int numerador = m * n;
	unsigned int denominador = mcd(m, n);
	return numerador / denominador;
}
